/**
 * 
 * 减少继承层次.不再用
 * 
 * @author FengLei.You
 */
function BaseCanvas(opt){
	Me.extend(Displayable,BaseCanvas);
	
	this.KEY_UP=1;
	this.KEY_DOWN=6;
	this.KEY_LEFT=2;
	this.KEY_RIGHT=5;	
	this.KEY_FIRE=8;
	
	this._keyMap={};
	this._keyHandleMap={};
	
	this.isDoubleBuffered=opt.isDoubleBuffered||false;
}
BaseCanvas.prototype.isDoubleBuffered=function(){
	return this.isDoubleBuffered;
}
BaseCanvas.prototype.setDoubleBuffered=function(dbf){
	this.isDoubleBuffered=dbf;
	//todo smthing to support
}
BaseCanvas.prototype.showNotify=function(){}
BaseCanvas.prototype.hideNotify=function(){}
BaseCanvas.prototype.onKeyDown=function(keyCode){}
BaseCanvas.prototype.onKeyUp=function(keyCode){}
BaseCanvas.prototype.repaint=function(x,y,width,height){}
BaseCanvas.prototype.setFullScreenMode=function(){}
BaseCanvas.prototype.onSizeChanged=function(width,height){}




